/**
 * Copyright © 2020 易久批信息技术有限公司. All rights reserved.
 */
package com.dysm.observer;

/**
 *
 * @author xiay
 * @since 2020/12/17 2:00 下午
 */
public class ObserverImpl implements Observer {

    private int myState;

    @Override
    public void update(Subject subject) {
        SubjectImpl su = (SubjectImpl) subject;
        myState = su.getState();
    }


    public int getMyState() {
        return this.myState;
    }

    public void setMyState(int myState) {
        this.myState = myState;
    }
}
